<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script language="javascript" src="../script/common.js"  type="text/javascript"></script>
	<script language="javascript" type="text/javascript">
		//模拟后台显示数据
		
		//全局变量
		var qt = {};				//数据表格对象
		var uID = getPara("uID");	
		function load(){
			createTable();	
		}
		
		/**查询部分**/
		//生成查询语句
		function createQuery(){
		    var q = new Query("select o.id,c.name from CardUser as o left join o.orgUser as u left join o.customer as c where u.id ="+uID+"");
			return q;
		}
		//设置表格数据列
		function createColumn(){				
				var columns = [						
				{type:"checkbox"},	
				{title:"姓名",width:"15%"},
				{title:"",width:"85%"}
			]
			return columns;
		}
		//生成表格，创建QueryTable对象
		function createTable(){
			qt = new QueryTable("datalist",createQuery,createColumn());
			showData();					//显示查询结果方法
		}
		
		//显示、刷新表格
		function showData(){	
			qt.showTable();				//qt为全局的QueryTable对象
		}
		function onSave(){
			var id = Common.getCheckBoxValue("checkboxs");			
			if(!id){
				showInformation("请选择司机");
				return;
			}
			dialogBackValue(id?id:{});
		/*	DWR.call("cardMgntService.organizationload",id,function(v){
					dialogBackValue(v?v:{});
			 	});*/
		}
	</script>
</head>
	<body onload="load()" class="body" >
		<div id="content">
			<div id="listview">	
				<!--查询条件form-->
				<div class="searchform">
					<table cellSpacing=0 cellPadding=4 width="100%" border=0>
						
					</table>
				</div>
					<div class=listBorder>
				<!--查询结构列表-->
					<div id=datalist>
					</div>
					</div>
			</div>
		</div>
	</body>
</html>
